class AudioDetailModel {
  Now now;
  Prev prev;
  Prev next;
  bool like;
  bool collect;

  AudioDetailModel({this.now, this.prev, this.next, this.like, this.collect});

  AudioDetailModel.fromJson(Map<String, dynamic> json) {
    now = json['now'] != null ? new Now.fromJson(json['now']) : null;
    prev = json['prev'] != null ? new Prev.fromJson(json['prev']) : null;
    next = json['next'] != null ? new Prev.fromJson(json['next']) : null;
    like = json['like'];
    collect = json['collect'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    if (this.now != null) {
      data['now'] = this.now.toJson();
    }
    if (this.prev != null) {
      data['prev'] = this.prev.toJson();
    }
    if (this.next != null) {
      data['next'] = this.next.toJson();
    }
    data['like'] = this.like;
    data['collect'] = this.collect;
    return data;
  }
}

class Now {
  int id;
  String status;
  String profile;
  String audioUrl;
  String courseTitle;
  String createTime;
  String updateTime;
  int deleteTime;
  int tid;
  String soundContent;
  String language;
  int like;
  int collect;
  int player;
  String headImg;

  Now(
      {this.id,
        this.status,
        this.profile,
        this.audioUrl,
        this.courseTitle,
        this.createTime,
        this.updateTime,
        this.deleteTime,
        this.tid,
        this.soundContent,
        this.language,
        this.like,
        this.collect,
        this.player,
        this.headImg});

  Now.fromJson(Map<String, dynamic> json) {
    id = json['id'];
    status = json['status'];
    profile = json['profile'];
    audioUrl = json['audio_url'];
    courseTitle = json['course_title'];
    createTime = json['create_time'];
    updateTime = json['update_time'];
    deleteTime = json['delete_time'];
    tid = json['tid'];
    soundContent = json['sound_content'];
    language = json['language'];
    like = json['like'];
    collect = json['collect'];
    player = json['player'];
    headImg = json['head_img'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['id'] = this.id;
    data['status'] = this.status;
    data['profile'] = this.profile;
    data['audio_url'] = this.audioUrl;
    data['course_title'] = this.courseTitle;
    data['create_time'] = this.createTime;
    data['update_time'] = this.updateTime;
    data['delete_time'] = this.deleteTime;
    data['tid'] = this.tid;
    data['sound_content'] = this.soundContent;
    data['language'] = this.language;
    data['like'] = this.like;
    data['collect'] = this.collect;
    data['player'] = this.player;
    data['head_img'] = this.headImg;
    return data;
  }
}

class Prev {
  int id;

  Prev({this.id});

  Prev.fromJson(Map<String, dynamic> json) {
    id = json['id'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['id'] = this.id;
    return data;
  }
}
